package com.lbt.javaSE.gragh;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.jar.JarOutputStream;

public class Iteroa {
    public static void main(String[] args) {
        Set<Integer> set=new HashSet<Integer>();
        set.add(0);
        set.add(1);
        set.add(2);
        set.add(3);
        Iterator<Integer> iterator = set.iterator();
        while (iterator.hasNext()){
            Integer next = iterator.next();
            System.out.println(next);
        }

    }
}
